package com.gxa.xx.controller;

import com.gxa.xx.DTO.RespInfo;
import com.gxa.xx.dao.YiZhuDao;
import com.gxa.xx.service.YiZhuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *     录入医嘱
 *     作废医嘱
 *     停止医嘱
 *     查询医嘱
 *     管理执行单
 */
@RestController
@RequestMapping(value = "/yiZhu", produces = MediaType.APPLICATION_JSON_VALUE)
public class YiZhuController {

    private YiZhuService yiZhuService;

    public YiZhuController(YiZhuService yiZhuService) {
        this.yiZhuService = yiZhuService;
    }

    public ResponseEntity<RespInfo<String>> insertYiZhu() {
        return null;
    }

    public ResponseEntity<RespInfo<String>> cancelYiZhu() {
        return null;
    }

    public ResponseEntity<RespInfo<String>> stopYiZhu() {
        return null;
    }

    public ResponseEntity<RespInfo<String>> queryYiZhu() {
        return null;
    }

    @GetMapping("/queryAll")
    public ResponseEntity<RespInfo<String>> queryAllYiZhu() {
        System.out.println(yiZhuService.queryAllYiZhu());
        return null;
    }

    public ResponseEntity<RespInfo<String>> insertZhiXingDan() {
        return null;
    }

    public ResponseEntity<RespInfo<String>> updateZhiXingDan() {
        return null;
    }

    public ResponseEntity<RespInfo<String>> deleteZhiXingDan() {
        return null;
    }
}
